home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / ole / posiword / readme.txt < prev    next >
Text File  |  1994-03-15  |  3KB  |  59 lines

  1. POSITION.TXT, for use with OLE Automation with Word for Windows
  2.  
  3. -----------------------------------------------------------------------------
  4. The information in the article applies to:
  5.  
  6. - The Standard and Professional Editions of Microsoft Visual Basic, version 
  7.   3.0 for Windows.
  8. - Microsoft Word, version 6.0 for Windows.
  9. -----------------------------------------------------------------------------
  10.  
  11. SUMMARY
  12. =======
  13.  
  14. The file POSITION.TXT is provided for users of Microsoft Visual Basic, version
  15. 3.0 who want to access WordBasic in Word, version 6.0 through OLE Automation.
  16. Currently this file is being shipped with the Word Development Kit (WDK).
  17.  
  18. This file provides a listing of WordBasic functions and all their required
  19. parameters in the proper order (which the on-line help in Word 6.0 does not)
  20.  
  21. This document is also available as an on-line help file (POSITION.HLP).  This
  22. help file can be downloaded as a self-extracting file POSITION.EXE from the  
  23. Microsoft Software Library (MSL) accessible from the following services:
  24.  
  25.     - Microsoft Software Library (MSL) on CompuServe (GO MSL).
  26.  
  27.     - Microsoft Software Library on Internet(ftp.microsoft.com cd softlib)
  28.  
  29.     - Microsoft Download Service (206)936-MSDL.
  30.  
  31. MORE INFORMATION
  32. ================
  33.  
  34. WordBasic statements or functions in WinWord 6.0 can take named arguments.
  35. Visual Basic version 3.0 does not support named arguments, which means that
  36. when a Visual Basic 3.0 application sends WordBasic commands through OLE  
  37. Automation, it must specify ALL named WordBasic arguments in the proper  
  38. position. Where the same function call in WordBasic may only require some of  
  39. the parameters and using named arguments, they could be provided in any order.
  40.  
  41. For most WordBasic statements the positioning of the arguments is documented
  42. in the WordBasic Help topics or printed reference entries for those  
  43. statements. However, there are some statements whose documents arguments are  
  44. not listed in order or that have arguments that are irrelevant or that have  
  45. no effect. These arguments are not documented in WordBasic Help or in the  
  46. printed reference. 
  47.  
  48. For example, the InsertIndex statement corresponds to the Index tab in the
  49. Index and Tables dialog box. The InsertIndex statement takes a number of  
  50. arguments that have to do with other tabs in the dialog box, such the Table  
  51. of Contents tab. Since these arguments are irrelevant to inserting an index,  
  52. they are ignored and therefore not documented in WordBasic Help or in the  
  53. printed reference. 
  54.  
  55. However, the Visual Basic version 3.0 OLE Automation programmer needs to  
  56. beaware of these arguments so that he or she can correctly specify arguments  
  57. by position.
  58.  
  59.